<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TurtleDB: src/ca/uqac/dim/turtledb/VariableTable.java Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TurtleDB
   
   </div>
   <div id="projectbrief">A mini distributed database system</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_variable_table_8java.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">src/ca/uqac/dim/turtledb/VariableTable.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_variable_table_8java.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*-------------------------------------------------------------------------</span>
<a name="l00002"></a>00002 <span class="comment">    Simple distributed database engine</span>
<a name="l00003"></a>00003 <span class="comment">    Copyright (C) 2012  Sylvain Hallé</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">    This program is free software: you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00007"></a>00007 <span class="comment">    the Free Software Foundation, either version 3 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment">    (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">    This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment">    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span>
<a name="l00017"></a>00017 <span class="comment"> -------------------------------------------------------------------------*/</span>
<a name="l00018"></a>00018 <span class="keyword">package </span>ca.uqac.dim.turtledb;
<a name="l00019"></a>00019 
<a name="l00027"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html">00027</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html">VariableTable</a> <span class="keyword">extends</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html">UnaryRelation</a>
<a name="l00028"></a>00028 {
<a name="l00032"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">00032</a>   <span class="keyword">protected</span> String <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a>;
<a name="l00033"></a>00033   
<a name="l00037"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a2d43191d5c6c3f11ac98654b7bf9a098">00037</a>   <span class="keyword">protected</span> String <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a2d43191d5c6c3f11ac98654b7bf9a098">m_site</a>;
<a name="l00038"></a>00038   
<a name="l00039"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ac1d5df8cbc1441b87fd4c3bca187ecf1">00039</a>   <span class="keyword">protected</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ac1d5df8cbc1441b87fd4c3bca187ecf1">VariableTable</a>()
<a name="l00040"></a>00040   {
<a name="l00041"></a>00041     super();
<a name="l00042"></a>00042     <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a> = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00043"></a>00043     <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a2d43191d5c6c3f11ac98654b7bf9a098">m_site</a> = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00044"></a>00044   }
<a name="l00045"></a>00045   
<a name="l00046"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ad08deba67b52439e88c61a0eaaccfba9">00046</a>   <span class="keyword">public</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ac1d5df8cbc1441b87fd4c3bca187ecf1">VariableTable</a>(String name)
<a name="l00047"></a>00047   {
<a name="l00048"></a>00048     <span class="keyword">this</span>();
<a name="l00049"></a>00049     <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a> = name;
<a name="l00050"></a>00050   }
<a name="l00051"></a>00051   
<a name="l00052"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ab2f28b7065fb13733e7da0368142f41a">00052</a>   <span class="keyword">public</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ac1d5df8cbc1441b87fd4c3bca187ecf1">VariableTable</a>(String name, String site)
<a name="l00053"></a>00053   {
<a name="l00054"></a>00054     <span class="keyword">this</span>();
<a name="l00055"></a>00055     <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a> = name;
<a name="l00056"></a>00056     <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a2d43191d5c6c3f11ac98654b7bf9a098">m_site</a> = site;
<a name="l00057"></a>00057   }
<a name="l00058"></a>00058   
<a name="l00064"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a31000ab758c3230089cd00280d457cee">00064</a>   <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a31000ab758c3230089cd00280d457cee">setSite</a>(String site)
<a name="l00065"></a>00065   {
<a name="l00066"></a>00066     <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a2d43191d5c6c3f11ac98654b7bf9a098">m_site</a> = site;
<a name="l00067"></a>00067   }
<a name="l00068"></a>00068   
<a name="l00076"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a2a3a115140d8bb32a040cd7a3dbcdae0">00076</a>   <span class="keyword">public</span> String <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a2a3a115140d8bb32a040cd7a3dbcdae0">getSite</a>()
<a name="l00077"></a>00077   {
<a name="l00078"></a>00078     <span class="keywordflow">return</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a2d43191d5c6c3f11ac98654b7bf9a098">m_site</a>;
<a name="l00079"></a>00079   }
<a name="l00080"></a>00080 
<a name="l00081"></a>00081   @Override
<a name="l00082"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ad16ee9c420649ce783b69f32a1ea2922">00082</a>   <span class="keyword">public</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_schema.html">Schema</a> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ad16ee9c420649ce783b69f32a1ea2922">getSchema</a>()
<a name="l00083"></a>00083   {
<a name="l00084"></a>00084     <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a> != null)
<a name="l00085"></a>00085       <span class="keywordflow">return</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a>.<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#a7a7af53642133603e51e04d79f938286">getSchema</a>();
<a name="l00086"></a>00086     <span class="keywordflow">else</span>
<a name="l00087"></a>00087       <span class="keywordflow">return</span> null;
<a name="l00088"></a>00088   }
<a name="l00089"></a>00089   
<a name="l00090"></a>00090   @Override
<a name="l00091"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a08a3c30245333c35273383f015ef45a7">00091</a>   <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a08a3c30245333c35273383f015ef45a7">accept</a>(<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_query_visitor.html">QueryVisitor</a> v) <span class="keywordflow">throws</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_empty_query_visitor.html">EmptyQueryVisitor</a>.VisitorException
<a name="l00092"></a>00092   {
<a name="l00093"></a>00093     <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a> != null)
<a name="l00094"></a>00094       <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a>.<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#adb708409ab8c4a428ed102c4ce850ffe">accept</a>(v);
<a name="l00095"></a>00095     v.visit(<span class="keyword">this</span>);
<a name="l00096"></a>00096   }
<a name="l00097"></a>00097   
<a name="l00098"></a>00098   @Override
<a name="l00099"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ab093371cf0ce65b8ff3d218c0710a7e4">00099</a>   <span class="keyword">public</span> String <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ab093371cf0ce65b8ff3d218c0710a7e4">toString</a>()
<a name="l00100"></a>00100   {
<a name="l00101"></a>00101     <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a> == null)
<a name="l00102"></a>00102       <span class="keywordflow">return</span> <span class="stringliteral">&quot;?&quot;</span> + <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a>;
<a name="l00103"></a>00103     <span class="keywordflow">return</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a>.<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#ae622e86850cef5b988e17bc199129ebe">toString</a>();
<a name="l00104"></a>00104   }
<a name="l00105"></a>00105   
<a name="l00110"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#af96b675d3483a6332ee899f949fa9c22">00110</a>   <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#af96b675d3483a6332ee899f949fa9c22">setName</a>(String name)
<a name="l00111"></a>00111   {
<a name="l00112"></a>00112     <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a> = name;
<a name="l00113"></a>00113   }
<a name="l00114"></a>00114   
<a name="l00119"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a3a7352abd5bca8b9904a80b1a1b9bdfc">00119</a>   <span class="keyword">public</span> String <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a3a7352abd5bca8b9904a80b1a1b9bdfc">getName</a>()
<a name="l00120"></a>00120   {
<a name="l00121"></a>00121     <span class="keywordflow">return</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a>;
<a name="l00122"></a>00122   }
<a name="l00123"></a>00123   
<a name="l00124"></a>00124   @Override
<a name="l00125"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a56041dd84799d1d36bda982d22a0a0f7">00125</a>   <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a56041dd84799d1d36bda982d22a0a0f7">tupleCount</a>()
<a name="l00126"></a>00126   {
<a name="l00127"></a>00127     <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a> == null)
<a name="l00128"></a>00128       <span class="keywordflow">return</span> 0;
<a name="l00129"></a>00129     <span class="keywordflow">return</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a>.<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#aa39696dd8f39129e2c02e1323c01b124">tupleCount</a>();
<a name="l00130"></a>00130   }
<a name="l00131"></a>00131   
<a name="l00132"></a>00132   @Override
<a name="l00133"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#afd0b10234af37f08de8d13934a5204d5">00133</a>   <span class="keyword">public</span> <span class="keyword">final</span> <span class="keywordtype">boolean</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#afd0b10234af37f08de8d13934a5204d5">isFragment</a>()
<a name="l00134"></a>00134   {
<a name="l00135"></a>00135     <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00136"></a>00136   }
<a name="l00137"></a>00137   
<a name="l00138"></a>00138   @Override
<a name="l00139"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a4a5cbe27265212947d786d1106380ce7">00139</a>   <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a4a5cbe27265212947d786d1106380ce7">equals</a>(Object o)
<a name="l00140"></a>00140   {
<a name="l00141"></a>00141     <span class="keywordflow">if</span> (o == null)
<a name="l00142"></a>00142       <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00143"></a>00143     <span class="keywordflow">if</span> (!(o instanceof <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html">VariableTable</a>))
<a name="l00144"></a>00144       <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00145"></a>00145     <span class="keywordflow">return</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a4a5cbe27265212947d786d1106380ce7">equals</a>((VariableTable) o);
<a name="l00146"></a>00146   }
<a name="l00147"></a>00147   
<a name="l00148"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a1ee7c424472e6b22edfee46d1fda171f">00148</a>   <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a4a5cbe27265212947d786d1106380ce7">equals</a>(<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html">VariableTable</a> t)
<a name="l00149"></a>00149   {
<a name="l00150"></a>00150     <span class="keywordflow">if</span> (t == null)
<a name="l00151"></a>00151       <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00152"></a>00152     <span class="keywordflow">return</span> t.<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a>.compareTo(<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a54f9a15de2f8de3ee349b9c5b7e4124e">m_name</a>) == 0;
<a name="l00153"></a>00153   }
<a name="l00154"></a>00154 
<a name="l00155"></a>00155   @Override
<a name="l00156"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a8469b09df3798c91152e353f2e944a48">00156</a>   <span class="keyword">public</span> <span class="keywordtype">boolean</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a8469b09df3798c91152e353f2e944a48">isLeaf</a>()
<a name="l00157"></a>00157   {
<a name="l00158"></a>00158     <span class="comment">// A VariableTable is a leaf only when it has not</span>
<a name="l00159"></a>00159     <span class="comment">// yet been connected to a relation</span>
<a name="l00160"></a>00160     <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a> == null)
<a name="l00161"></a>00161       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00162"></a>00162     <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a> instanceof <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html">VariableTable</a>)
<a name="l00163"></a>00163     {
<a name="l00164"></a>00164       VariableTable vt = (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#ac1d5df8cbc1441b87fd4c3bca187ecf1">VariableTable</a>) <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a>;
<a name="l00165"></a>00165       <span class="keywordflow">return</span> vt.<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a8469b09df3798c91152e353f2e944a48">isLeaf</a>();
<a name="l00166"></a>00166     }
<a name="l00167"></a>00167     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00168"></a>00168   }
<a name="l00169"></a>00169   
<a name="l00170"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html">00170</a>   <span class="keyword">protected</span> <span class="keyword">class </span><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html">VariableTableStreamIterator</a> <span class="keyword">extends</span> UnaryRelationStreamIterator
<a name="l00171"></a>00171   {
<a name="l00172"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#ab3e3a402180f08eb8599a454527afec0">00172</a>     <span class="keyword">protected</span> <a class="code" href="interfaceca_1_1uqac_1_1dim_1_1turtledb_1_1_relation_iterator.html">RelationIterator</a> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#ab3e3a402180f08eb8599a454527afec0">m_iterator</a> = null;
<a name="l00173"></a>00173     
<a name="l00174"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a11932894272a72621966af7b043bdde1">00174</a>     <span class="keyword">protected</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_tuple.html">Tuple</a> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a11932894272a72621966af7b043bdde1">m_nextTuple</a>;
<a name="l00175"></a>00175     
<a name="l00176"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a21238e494c663bc0942cd3c22d0bd22c">00176</a>     <span class="keyword">public</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a21238e494c663bc0942cd3c22d0bd22c">VariableTableStreamIterator</a>()
<a name="l00177"></a>00177     {
<a name="l00178"></a>00178       super();
<a name="l00179"></a>00179       <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a0ac45de4cf8467d98b9aa027244567f4">reset</a>();
<a name="l00180"></a>00180     }
<a name="l00181"></a>00181     
<a name="l00182"></a>00182     @Override
<a name="l00183"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a565ed2465b4ba11911a3ad0279004dd6">00183</a>     <span class="keyword">protected</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_tuple.html">Tuple</a> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a565ed2465b4ba11911a3ad0279004dd6">internalNext</a>()
<a name="l00184"></a>00184     {
<a name="l00185"></a>00185       <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#ab3e3a402180f08eb8599a454527afec0">m_iterator</a> == null)
<a name="l00186"></a>00186         <span class="keywordflow">return</span> null;
<a name="l00187"></a>00187       <span class="keywordflow">if</span> (!<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#ab3e3a402180f08eb8599a454527afec0">m_iterator</a>.hasNext())
<a name="l00188"></a>00188         <span class="keywordflow">return</span> null;
<a name="l00189"></a>00189       <span class="keywordflow">return</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#ab3e3a402180f08eb8599a454527afec0">m_iterator</a>.next());
<a name="l00190"></a>00190     }
<a name="l00191"></a>00191     
<a name="l00192"></a>00192     @Override
<a name="l00193"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a0ac45de4cf8467d98b9aa027244567f4">00193</a>     <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#a0ac45de4cf8467d98b9aa027244567f4">reset</a>()
<a name="l00194"></a>00194     {
<a name="l00195"></a>00195       <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a> != null)
<a name="l00196"></a>00196         <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html#ab3e3a402180f08eb8599a454527afec0">m_iterator</a> = <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a>.<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#ae5ed6d099a1c47cc0aa0026f9b5a4431">streamIterator</a>();
<a name="l00197"></a>00197     }
<a name="l00198"></a>00198   }
<a name="l00199"></a>00199   
<a name="l00200"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html">00200</a>   <span class="keyword">protected</span> <span class="keyword">class </span><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html">VariableTableCacheIterator</a> <span class="keyword">extends</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation_1_1_unary_relation_cache_iterator.html">UnaryRelationCacheIterator</a>
<a name="l00201"></a>00201   {
<a name="l00202"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#affac405d1226c981df70e0e5308164de">00202</a>     <span class="keyword">protected</span> <a class="code" href="interfaceca_1_1uqac_1_1dim_1_1turtledb_1_1_relation_iterator.html">RelationIterator</a> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#affac405d1226c981df70e0e5308164de">m_iterator</a> = null;
<a name="l00203"></a>00203     
<a name="l00204"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#a2f0f139a172597fa721cae47e0edb461">00204</a>     <span class="keyword">protected</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_tuple.html">Tuple</a> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#a2f0f139a172597fa721cae47e0edb461">m_nextTuple</a>;
<a name="l00205"></a>00205     
<a name="l00206"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#a6a4ce0697f6ec04e9b49419d011c664f">00206</a>     <span class="keyword">public</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#a6a4ce0697f6ec04e9b49419d011c664f">VariableTableCacheIterator</a>()
<a name="l00207"></a>00207     {
<a name="l00208"></a>00208       super();
<a name="l00209"></a>00209       <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#a6006d9fefa27ce85a43de53d7de1bb57">reset</a>();
<a name="l00210"></a>00210     }
<a name="l00211"></a>00211     
<a name="l00212"></a>00212     @Override
<a name="l00213"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#a6006d9fefa27ce85a43de53d7de1bb57">00213</a>     <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#a6006d9fefa27ce85a43de53d7de1bb57">reset</a>()
<a name="l00214"></a>00214     {
<a name="l00215"></a>00215       <span class="keywordflow">if</span> (<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a> != null)
<a name="l00216"></a>00216         <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html#affac405d1226c981df70e0e5308164de">m_iterator</a> = <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_unary_relation.html#a1ae5d140ec09a2db41d6ff8cd7c0f81c">m_relation</a>.<a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation.html#a2ea66dc69ae6dc86627aed815ebd40b6">cacheIterator</a>();
<a name="l00217"></a>00217     }
<a name="l00218"></a>00218   }
<a name="l00219"></a>00219 
<a name="l00220"></a>00220   @Override
<a name="l00221"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#aceaf87e8edfb7beb03dc386b4371605f">00221</a>   <span class="keyword">public</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_relation_stream_iterator.html">RelationStreamIterator</a> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#aceaf87e8edfb7beb03dc386b4371605f">streamIterator</a>()
<a name="l00222"></a>00222   {
<a name="l00223"></a>00223     <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_stream_iterator.html">VariableTableStreamIterator</a>();
<a name="l00224"></a>00224   }
<a name="l00225"></a>00225 
<a name="l00226"></a>00226   @Override
<a name="l00227"></a><a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a4289294442a81011eef72a7f176ba0f9">00227</a>   <span class="keyword">public</span> <a class="code" href="interfaceca_1_1uqac_1_1dim_1_1turtledb_1_1_relation_iterator.html">RelationIterator</a> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table.html#a4289294442a81011eef72a7f176ba0f9">cacheIterator</a>()
<a name="l00228"></a>00228   {
<a name="l00229"></a>00229     <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classca_1_1uqac_1_1dim_1_1turtledb_1_1_variable_table_1_1_variable_table_cache_iterator.html">VariableTableCacheIterator</a>();
<a name="l00230"></a>00230   }
<a name="l00231"></a>00231   
<a name="l00232"></a>00232 }
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_variable_table_8java.html">VariableTable.java</a>      </li>

    <li class="footer">Generated on Fri Dec 7 2012 18:55:40 for TurtleDB by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
